<?php

class AuthConst {

    const AUTH_USER    = [

    ];
    const AUTH_ROLE    = [

    ];
    const AUTH_INFO    = [

    ];
    const AUTH_SHARED  = [

    ];
    const AUTH_RECEIVE = [

    ];

    const AUTH = [
        ['id' => 1, 'name' => '用户权限', 'pid' => 0],
        ['id' => 2, 'name' => '角色权限', 'pid' => 0],
        ['id' => 6, 'name' => '所有客户', 'pid' => 0],
        ['id' => 3, 'name' => '领取客户', 'pid' => 0],
        ['id' => 4, 'name' => '客户管理', 'pid' => 0],
        ['id' => 5, 'name' => '共享权限', 'pid' => 0],
        ['id' => 7, 'name' => '文件管理', 'pid' => 0],
    ];

    public static function getAdminRoles()
    {
        return array_column(self::AUTH, 'id');
    }
}
